import ajax from './index'

 
// 1. 添加商品
export const addProduct = (product) => ajax('/manager/api/auth/product/add_product',product,'post')

// 2. 获取商品列表
export const getProductList = (queryList) => ajax('/manager/api/auth/product/get_product',queryList,'post')

// 3. 删除 一个商品
export const delOneProduct = (id) => ajax('/manager/api/auth/product/del_one_product',{id},'post')

// 4. 局部列表更新
export const updateProductWidthList = (product) => ajax('/manager/api/auth/product/update_product_local',product,'post')

// 5. 批量更新列表数据
export const updateProductWidthListMany = (product) => ajax('/manager/api/auth/product/update_list_many',product,'post')

// 6. 批量删除列表数据
export const deleteProductWidthListMany = (ids) => ajax('/manager/api/auth/product/delete_list_many',{ids},'post')

// 7. 获取商品的完整信息
export const getProducById = (id) => ajax('/manager/api/auth/product/get_product_by_id',{id},'post')

// 8. 根据id去修改商品的完整信息
export const editProducById = (product) => ajax('/manager/api/auth/product/edit_product_by_id',product,'post')
